<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}{% endblock %}</title>
    <!-- 获得更好的响应式支持 -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 引入 Bootstrap CSS 样式 -->
    <link rel="stylesheet" href="../static/css/bootstrap.min.css">
    <!-- 引入 jQuery -->
    <script src="../static/js/jquery-3.7.1.min.js"></script>
    <!-- 引入 Bootstrap JS -->
    <script src="../static/js/bootstrap.js"></script>
    {% block styles %}{% endblock %}
    {% block js %}
    {% endblock %}

</head>
<body>
{#---------------导航条---------------------#}
<nav class="navbar navbar-inverse">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#" style="margin-left: -120px;">RBAC<span class="btn-success"></span></a>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
          <li><a href="{{ url_for('kehu') }}">客户一</a></li>
          <li><a href="{{ url_for('keqq') }}">客户二</a></li>
         <li><a href="{{ url_for('bianji') }}">编辑</a></li>
          <li><a href="{{ url_for('delete') }}">删除</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle"  data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">用户中心<span class="caret" ></span> </a>
          <ul class="dropdown-menu">
              {% if session.get('username') %}
                  <li><a href="{{ url_for('login') }}">欢迎{{ session.get('username') }}</a></li>
               <li role="separator" class="divider"></li>
              <li><a href="{{ url_for('logout') }}">退出登录</a></li>
              {% else %}
                  <li><a href="{{ url_for('login') }}">登录</a></li>
                  <li role="separator" class="divider"></li>
                   <li><a href="{{ url_for('register') }}">注册</a></li>
              {% endif %}



          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>

<div class="container">
    {% block content %}
    {% endblock %}


</div>





</body>
</html>